import request from '@/utils/request'
export function getList(data) {
  return request({
    showLoading: false,
    cache: true,
    method: 'POST',
    url: '/child/api/system/video/recommendVideoList',
    data
  })
}

export function getLogin(data) {
  return request({
    method: 'POST',
    url: '/login',
    data
  })
}

/**
 *
 * @param {*} data = current = 1, pageSize = 10
 * @returns
 */
export function getTableList({ pageSize = 10, pageNum, ...querys }) {
  return request({
    method: 'GET',
    url: '/table/getList',
    params: {
      current: pageNum,
      pageSize,
      ...querys
    }
  })
}
